#include <iostream>
#include <string>
using namespace std;
class Notebook
{
private:
    string brandName;
    double screenSize;
    int batteryCapacity;
public:
    Notebook(string name, double size, int capacity)
    {
        brandName = name;
        screenSize = size;
        batteryCapacity = capacity;
    }
    void powerOn() const;
    void powerOff() const;
    void codingTime() const;
};
int main()
{
    Notebook myNotebook("Dell", 15.6, 5000);
    myNotebook.powerOn();
    myNotebook.codingTime();
    myNotebook.powerOff();
    return 0;
}
void Notebook::powerOn() const
{
    cout << "The " << brandName << " notebook is powering on..." << endl;
}
void Notebook::powerOff() const
{
    cout << "The " << brandName << " notebook is powering off..." << endl;
}
void Notebook::codingTime() const
{
    const float time = 2.0;
    cout << "The student spent " << time << " hours writing C++ code on the " << brandName << " notebook." << endl;
}